//
//  StrategyController.m
//  LiquorChain
//
//  Created by apple on 2018/12/24.
//  Copyright © 2018年 王冬. All rights reserved.
//

#import "StrategyController.h"
#import <WebKit/WebKit.h>
@interface StrategyController ()
@property (nonatomic,strong) WKWebView *webView;
@end

@implementation StrategyController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = _titleStr;
    self.webView =[[WKWebView alloc]initWithFrame:CGRectMake(0, kNavBarHeight, SCREEN_WIDTH, SCREEN_HEIGHT - kNavBarHeight-kIPhoneXBottomHeight)];
  
    NSMutableURLRequest *request =[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://www.baidu.com/"]];
    // 3.加载网页
    [self.webView loadRequest:request];
    
    // 最后将webView添加到界面
    [self.view addSubview:self.webView];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
